<ui:composition template="/templateLogin.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:cc="http://sourceforge.net/projects/jsf-comp">
    <ui:define name="conteudo">
        <br/>        <br/>
        <center>
            <rich:messages layout="table"
                           errorClass="errorClass"
                           infoClass="infoClass"
                           warnClass="warnClass"
                           styleClass="painelMensagem"
                           ajaxRendered="true"/>
        </center>
        <center>
            <h2>#{bundle.geralLogin}</h2><br/>
            <h:form>
                <s:validateAll>
                    <h:panelGrid cellpadding="2" cellspacing="2" columns="2" columnClasses="field-names, fields">
                        <h:outputLabel for="loginUsuario">
                            <h:outputText value="#{bundle.loginUsuario}: " />
                        </h:outputLabel>

                        <h:inputText id="loginUsuario" value="#{identity.username}" label="#{bundle.loginUsuario}" required="true" maxlength="10" size="12" />


                        <h:outputLabel for="senhaUsuario">
                            <h:outputText value="#{bundle.loginSenha}: " />
                        </h:outputLabel>

                        <h:inputSecret id="senhaUsuario" value="#{identity.password}" label="#{bundle.loginSenha}" required="true" maxlength="8" size="12" />
                    </h:panelGrid>
                    <br/><center>
                        <h:commandButton action="#{identity.login}"
                                         value="#{bundle.botaoEntrar}"
                                         title="#{bundle.botaoEntrar}" />
                    </center>

                </s:validateAll>
                <br/><br/>
                
                <br/><br/><br/><br/><br/><br/>
                <br/><br/><br/><br/>
            </h:form>
        </center>
    </ui:define>
    <ui:define name="colunaEsquerda">
     <span style="color:#FFF">.</span>
    </ui:define>
</ui:composition>
